import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/shopping-cart',
    name: 'ShoppingCart',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/ShoppingCart.vue')
  },
  {
    path: '/personal',
    name: 'Personal',
    component: () => import('../views/Personal.vue')
  },
  {
    path: '/commodity',
    name: 'Commodity',
    component: () => import('../views/Commodity.vue')
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('../views/Order.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  ,
  {
    path: '/register',
    name: 'Register',
    component: () => import('../views/Register.vue')
  },
  {
	  path:'/collection',
	  name:'Collection',
	  component:()=>import('../views/Collection.vue')
  },
  {
	  path:'/address',
	  name:'Address',
	  component:()=>import('../views/Address.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
